]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Fix infinite loop when finding parent window of dialogs
authorverdre <gitlab@v0yd.nl>
Mon, 23 Jul 2018 12:22:34 +0000 (14:22 +0200)
committerverdre <gitlab@v0yd.nl>
Thu, 2 Aug 2018 22:09:02 +0000 (00:09 +0200)
commit52cbc299a795b4573a7558982115354cfa7a4e61
treeb77378f5551afe83aa7610e4ff98e0cb30989a7a
parent9f436ce3734b889afcff1880f6fed884196b92c5
workspace: Fix infinite loop when finding parent window of dialogs

When a dialog is added to a window while the overview is shown, we get
its parent using get_transient_for() so we can add it to the right
window clone.

If we have multiple layers of dialogs we have to do this recursively
until we find the root ancestor. This case currently results in an
infinite loop: Since parent is always set to the same window, the
while-condition will always be true.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/180
js/ui/workspace.js
js/ui/workspaceThumbnail.js